.class public Les/cz;
.super Les/kz;
.source "ListBottomMenu.java"


# instance fields
.field private o:Z


# direct methods
.method public constructor <init>(Landroid/content/Context;Z)V
    .locals 1

    .line 1
    invoke-direct {p0, p1, p2}, Les/kz;-><init>(Landroid/content/Context;Z)V

    const/4 p1, 0x1

    .line 2
    iput-boolean p1, p0, Les/cz;->o:Z

    .line 3
    new-instance p2, Landroid/widget/LinearLayout;

    iget-object v0, p0, Les/my;->b:Landroid/content/Context;

    invoke-direct {p2, v0}, Landroid/widget/LinearLayout;-><init>(Landroid/content/Context;)V

    iput-object p2, p0, Les/my;->c:Landroid/view/ViewGroup;

    .line 4
    check-cast p2, Landroid/widget/LinearLayout;

    invoke-virtual {p2, p1}, Landroid/widget/LinearLayout;->setOrientation(I)V

    .line 5
    invoke-static {}, Lcom/estrongs/android/ui/theme/b;->r()Lcom/estrongs/android/ui/theme/b;

    move-result-object p2

    invoke-virtual {p2}, Lcom/estrongs/android/ui/theme/b;->m()Z

    move-result p2

    xor-int/2addr p1, p2

    iput-boolean p1, p0, Les/cz;->o:Z

    return-void
.end method


# virtual methods
.method protected a(Landroid/view/View;Les/v00;I)V
    .locals 2

    .line 15
    invoke-virtual {p2, p1}, Les/v00;->a(Landroid/view/View;)V

    const p3, 0x7f09057e

    .line 16
    invoke-virtual {p1, p3}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object p3

    check-cast p3, Landroid/widget/ImageView;

    .line 17
    iget-boolean v0, p0, Les/cz;->o:Z

    const/4 v1, 0x0

    if-eqz v0, :cond_0

    const/4 v0, 0x0

    goto :goto_0

    :cond_0
    const/16 v0, 0x8

    :goto_0
    invoke-virtual {p3, v0}, Landroid/widget/ImageView;->setVisibility(I)V

    const v0, 0x7f090594

    .line 18
    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object p1

    check-cast p1, Landroid/widget/TextView;

    .line 19
    invoke-virtual {p2}, Les/v00;->getIcon()Landroid/graphics/drawable/Drawable;

    move-result-object v0

    invoke-virtual {p3, v0}, Landroid/widget/ImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V

    .line 20
    invoke-virtual {p2}, Les/v00;->getTitle()Ljava/lang/CharSequence;

    move-result-object v0

    invoke-virtual {p1, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 21
    invoke-virtual {p1, v1}, Landroid/widget/TextView;->setEnabled(Z)V

    .line 22
    invoke-virtual {p1, v1}, Landroid/widget/TextView;->setFocusable(Z)V

    .line 23
    invoke-virtual {p3, v1}, Landroid/widget/ImageView;->setEnabled(Z)V

    .line 24
    invoke-virtual {p3, v1}, Landroid/widget/ImageView;->setFocusable(Z)V

    .line 25
    invoke-virtual {p2}, Les/v00;->f()Les/v00$d;

    move-result-object p1

    if-nez p1, :cond_1

    .line 26
    new-instance p1, Les/cz$c;

    invoke-direct {p1, p0}, Les/cz$c;-><init>(Les/cz;)V

    invoke-virtual {p2, p1}, Les/v00;->a(Les/v00$d;)V

    :cond_1
    return-void
.end method

.method public a(Les/v00;)V
    .locals 1

    const/4 v0, 0x0

    .line 1
    invoke-virtual {p0, p1, v0}, Les/cz;->a(Les/v00;Z)V

    return-void
.end method

.method public a(Les/v00;Z)V
    .locals 7

    .line 2
    iget-object v0, p0, Les/my;->b:Landroid/content/Context;

    invoke-static {v0}, Lcom/estrongs/android/pop/esclasses/h;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v0

    const v1, 0x7f0c0266

    const/4 v2, 0x0

    invoke-virtual {v0, v1, v2}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v0

    .line 3
    iget-object v1, p0, Les/my;->a:Ljava/util/List;

    invoke-interface {v1}, Ljava/util/List;->size()I

    move-result v1

    invoke-virtual {p0, v0, p1, v1}, Les/cz;->a(Landroid/view/View;Les/v00;I)V

    .line 4
    iget-object v1, p0, Les/my;->a:Ljava/util/List;

    invoke-interface {v1, p1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 5
    iget-object v1, p0, Les/my;->c:Landroid/view/ViewGroup;

    check-cast v1, Landroid/widget/LinearLayout;

    invoke-virtual {v1}, Landroid/widget/LinearLayout;->getChildCount()I

    move-result v1

    const/4 v2, 0x0

    const/4 v3, 0x1

    if-eqz v1, :cond_1

    .line 6
    new-instance v1, Lcom/estrongs/android/pop/esclasses/ESImageView;

    iget-object v4, p0, Les/my;->b:Landroid/content/Context;

    invoke-direct {v1, v4}, Lcom/estrongs/android/pop/esclasses/ESImageView;-><init>(Landroid/content/Context;)V

    const v4, 0x7f0809af

    .line 7
    invoke-virtual {v1, v4}, Landroid/widget/ImageView;->setBackgroundResource(I)V

    const/4 v4, -0x1

    if-eqz p2, :cond_0

    .line 8
    iget-object v5, p0, Les/my;->c:Landroid/view/ViewGroup;

    check-cast v5, Landroid/widget/LinearLayout;

    new-instance v6, Landroid/view/ViewGroup$LayoutParams;

    invoke-direct {v6, v4, v3}, Landroid/view/ViewGroup$LayoutParams;-><init>(II)V

    invoke-virtual {v5, v1, v6}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    goto :goto_0

    .line 9
    :cond_0
    iget-object v5, p0, Les/my;->c:Landroid/view/ViewGroup;

    check-cast v5, Landroid/widget/LinearLayout;

    new-instance v6, Landroid/view/ViewGroup$LayoutParams;

    invoke-direct {v6, v4, v3}, Landroid/view/ViewGroup$LayoutParams;-><init>(II)V

    invoke-virtual {v5, v1, v2, v6}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;ILandroid/view/ViewGroup$LayoutParams;)V

    :cond_1
    :goto_0
    if-eqz p2, :cond_2

    .line 10
    iget-object p2, p0, Les/my;->c:Landroid/view/ViewGroup;

    check-cast p2, Landroid/widget/LinearLayout;

    invoke-virtual {p2, v0}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;)V

    goto :goto_1

    .line 11
    :cond_2
    iget-object p2, p0, Les/my;->c:Landroid/view/ViewGroup;

    check-cast p2, Landroid/widget/LinearLayout;

    invoke-virtual {p2, v0, v2}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;I)V

    .line 12
    :goto_1
    new-instance p2, Les/cz$a;

    invoke-direct {p2, p0, v0, p1}, Les/cz$a;-><init>(Les/cz;Landroid/view/View;Les/v00;)V

    invoke-virtual {v0, p2}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 13
    new-instance p2, Les/cz$b;

    invoke-direct {p2, p0, p1}, Les/cz$b;-><init>(Les/cz;Les/v00;)V

    invoke-virtual {v0, p2}, Landroid/view/View;->setOnLongClickListener(Landroid/view/View$OnLongClickListener;)V

    .line 14
    invoke-virtual {v0, v3}, Landroid/view/View;->setFocusable(Z)V

    return-void
.end method

.method public b(Z)V
    .locals 0

    .line 1
    iput-boolean p1, p0, Les/cz;->o:Z

    return-void
.end method
